package com.ara.project_common.ui.binding_adapter;

import android.view.View;

import androidx.databinding.BindingAdapter;

import com.blankj.utilcode.util.SizeUtils;

/**
 * Created by XieXin on 2022/2/28.
 * 阴影适配器
 */
public class ShadowBindingAdapter {
    @BindingAdapter(value = {"shadow"}, requireAll = false)
    public static void shadow(View view, int color) {
        ShadowDrawable.setShadowDrawable(view,
                color,
                SizeUtils.dp2px(20f),
                color,
                SizeUtils.dp2px(20f),
                0,
                SizeUtils.dp2px(10f));
    }
}
